import React, {Component} from 'react';
import ReactDOM from 'react-dom'
import axios from 'axios'

class App extends Component{
  componentDidMount() {
    axios({
      url: '/react/api/header.json',
      method: 'get'
    }).then(function (res) {
      console.log(res)
    })
  }

  render() {
    return (<div>hello, world</div>)
  }
}
ReactDOM.render(<App />, document.getElementById('root'));